package javase.javase02.networkprograming;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @author: Gan
 * @date 2021/4/23 0023 17:22
 * @description:
 **/
public class Server {
    public static void main(String[] args) throws IOException {
        //创建ServerSocket对象，指定端口，监听客户端请求
        ServerSocket serverSocket = new ServerSocket(8888);
        //收到客户端连接请求后，建立
        Socket socket = serverSocket.accept();



    }
}
